package thread;

class MyThread extends Thread {
    @Override
    public void run() {
        System.out.println(" hello thread ");
        try {
            sleep(10000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
}

public class Demothread1 {
    public static void main(String[] args) {
        Thread t = new MyThread();
        t.start(); //提交线程,来完成
//        t.run();
    }
}
